﻿/**
 * @author sminutoli
 */
class com.dinmax.flash.central.action.ActionSaveContact
extends com.dinmax.flash.utilities.xml.XMLAction {
	
	private var name:String = "savecontact";
	
	public function ActionSaveContact(userid:Number, contactid:Number, name:String, lastname:String, nick:String, phone:Number, mail:String, visibility:String) {
		super();
		super.addParameter("userid", String(userid));
		if(contactid != undefined){
			super.addParameter("contactid", String(contactid));
		} else {
			super.addParameter("contactid", "0");
		};
		super.addParameter("name", name);
		super.addParameter("lastname", lastname);
		super.addParameter("nick", nick);
		super.addParameter("phonenumber", String(phone));
		super.addParameter("mail", mail);
		super.addParameter("visibility", visibility);
	}
	
};